﻿using MaiPlanServer.IRepository;
using MaiPlanServer.IServices.IOrganizationaServices;
using MaiPlanServer.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MaiPlanServer.Services.OrganizationalServices
{
    public class RoleManageServices : IRoleManageServices
    {
        public RoleManageServices(IBaseRepository BaseConn)
        {
            this.BaseConn = BaseConn;
        }

        public IBaseRepository BaseConn { get; }

        public async Task<IEnumerable<sys_role>> GetRole()
        {
            var list = await BaseConn.QueryAllAsync<sys_role>("select * from sys_role");
            return list;
        }
    }
}
